﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CMTVision.Model;
using System.Configuration;

namespace CMTVision.Common
{
    public static class EntitiesManager
    {
        private const string ConnectStringName = "WidgetCnnString";
        public static string WidgetConnectString = ConfigurationManager.ConnectionStrings[ConnectStringName].ConnectionString;

        public static Model.CMTWidgetsEntities LoadWidgetEntity()
        {
            return new CMTWidgetsEntities(WidgetConnectString);
        }
    }
}
